package com.ll.menu.user.app.entity;

import java.io.Serializable;

/**
 * 菜单Item
 *
 * @author wangheng
 */

public class MenuItem implements Serializable {

    private static final long serialVersionUID = 834264886956339500L;

    public static final String TYPE_DISCOUNT = "1";        // 限时优惠
    public static final String TYPE_SPECIAL = "2";         // 特色
    public static final String TYPE_SALE = "3";         // 拍卖
    public static final String TYPE_ORDER = "4";           // 已点

    private String id;
    private String title;
    private boolean isSelect;

    /**
     * 是否限时优惠
     */
    public boolean isDiscount(){
        return TYPE_DISCOUNT.equals(id);
    }
    /**
     * 是否特色菜品
     */
    public boolean isSpecial(){
        return TYPE_SPECIAL.equals(id);
    }
    /**
     * 是否拍卖商品
     */
    public boolean isSale(){
        return TYPE_SALE.equals(id);
    }
    /**
     * 是否已点商品
     */
    public boolean isOrder(){
        return TYPE_ORDER.equals(id);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }
}
